<template>
  <div>
    <div v-for="item in list" :key="item.id" class="b-b p-v-10">
      <!-- <div class="flex a-center p-10">
        <van-icon class="text-grey" name="shop-o"></van-icon>
        <span class="m-l-5 fs-12 text-content">邂逅花坊鲜花(情人草)</span>
        <van-icon class="text-grey fs-12 m-l-5" name="arrow" />
      </div> -->
      <div class="p-10 flex a-center j-between">
        <!-- <img class="w-30 b-round" :src="logo" alt /> -->
        <div class="m-l-10 flex-1">
          <p class="fs-rem-12px text-grey">{{item.vnc}}</p>
          <van-rate size="12" v-model="item.star" />
        </div>
        <p class="fs-rem-12px text-grey a-s-start">{{item.ldtime}}</p>
      </div>
      <div class="p-10">
        <p class="fs-rem-14px text-content">{{item.pj}}</p>
        <div class="flex m-t-10">
          <div v-if="item.picture" :style="{'background-image': `url(${item.picture})`, 'background-size': 'cover'}"
          ></div>
        </div>
      </div>
    </div>
    <div v-if="!list.length">
      <empty-data class="text-center m-t-20" content="暂无商家评论"></empty-data>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array
    }
  }
}
</script>

<style lang="scss" scoped>
.a-s-start {
  align-self: flex-start;
}
</style>
